﻿create table dbo.Roles (
   RoleId               nvarchar(10)         collate Chinese_PRC_CI_AS not null,
   RoleOrder            int                  null,
   RoleName             nvarchar(30)         collate Chinese_PRC_CI_AS not null,
   RoleDescription      nvarchar(150)        collate Chinese_PRC_CI_AS null,
   CreateBy             nvarchar(10)         collate Chinese_PRC_CI_AS null,
   CreateOn             datetime             null constraint DF_Roles_CreateOn default getdate(),
   ModifyBy             nvarchar(10)         collate Chinese_PRC_CI_AS null,
   ModifyOn             datetime             null,
   constraint PK_Roles primary key (RoleId)
         on "PRIMARY"
)
on "PRIMARY"
go

execute sp_addextendedproperty 'MS_Description', 
   '角色编号',
   'user', 'dbo', 'table', 'Roles', 'column', 'RoleId'
go

execute sp_addextendedproperty 'MS_Description', 
   '角色名称',
   'user', 'dbo', 'table', 'Roles', 'column', 'RoleName'
go

execute sp_addextendedproperty 'MS_Description', 
   '角色描述',
   'user', 'dbo', 'table', 'Roles', 'column', 'RoleDescription'
go

execute sp_addextendedproperty 'MS_Description', 
   '创建人',
   'user', 'dbo', 'table', 'Roles', 'column', 'CreateBy'
go

execute sp_addextendedproperty 'MS_Description', 
   '创建时间',
   'user', 'dbo', 'table', 'Roles', 'column', 'CreateOn'
go

execute sp_addextendedproperty 'MS_Description', 
   '更改人',
   'user', 'dbo', 'table', 'Roles', 'column', 'ModifyBy'
go

execute sp_addextendedproperty 'MS_Description', 
   '更改时间',
   'user', 'dbo', 'table', 'Roles', 'column', 'ModifyOn'
go